export default function checkSuffix(str, suf) {
  const reg = /.\w+$/g
  let suffix = str.toLowerCase().match(reg)?.[0]
  suffix = suffix.replace('.', '')
  const result = suf.split(',').includes(suffix)
  return result
}
